package com.abl.core.mybatis.mapper;

import com.abl.core.domain.db.MtRoom;
import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.core.query.QueryWrapper;

public interface MtRoomMapper extends BaseMapper<MtRoom> {

    default String getRoomUserId(String mtId) {
        MtRoom mtRoom = selectOneByQuery(QueryWrapper.create().select("user_id").where("id=?", mtId));
        return mtRoom.getUserId();
    }

}